<template>
	<view class="container">
		<top-back-navbar position="fixed" title="项目讲解" background="#ffffff" color="#000000"></top-back-navbar>
		<image v-if="pic_url" :src="pic_url" style="width: 100%;" mode="widthFix"></image>
		<u-empty v-else text="暂无数据" mode="list"></u-empty>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pic_url:null
			};
		},
		mounted(){
			this.setajax()
		},
		methods:{
			setajax() {
				uni.request({
					url: this.$BASE_URL+'/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&r=api.get_pattern_pic&app=1&type=life_pic',
					method: 'GET',
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					},
					success: res => {
						this.pic_url=res.data && res.data.pic_url?res.data.pic_url:null;
					},
					fail: () => {},
					complete: () => {}
				});
			},
		}
	}
</script>

<style lang="less">
	page {
			background: #f3f6fb;
			height: 100%;
		}
		.container {
			height: 100%;
			padding:0 30rpx 30rpx 30rpx;
		}
</style>
